package mesweb.mesweb.entity.device;

import com.hszh.wms.mbg.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author niufw
 * @since 2021-05-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("Model_Device_Type")
public class MesDeviceType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableField("Parent_Id")
    private Long parentId;

    @TableField("Device_Type_No")
    private String deviceTypeNo;

    @TableField("Device_Type_Name")
    private String deviceTypeName;

    @TableField(exist = false)
    private List<MesDeviceType> children = new ArrayList<>();

}
